this.BX=this.BX||{};this.BX.Mobile=this.BX.Mobile||{};this.BX.Mobile.Field=this.BX.Mobile.Field||{};(function(t,e){"use strict";var i=window.BX,n=window.BXMobileApp;var o=function(){var t=function t(e,n){this.node=e;this.container=n;this.click=i.delegate(this.click,this);this.callback=i.delegate(this.callback,this);i.bind(this.container,"click",this.click)};t.prototype={click:function t(e){this.show();return i.PreventDefault(e)},show:function t(){this.node.value=this.node.value.replace(/<br\s*[\/]?>/gi,"");window.app.exec("showPostForm",{attachButton:{items:[]},attachFileSettings:{},attachedFiles:[],extraData:{},mentionButton:{},smileButton:{},message:{text:i.util.htmlspecialcharsback(this.node.value)},okButton:{callback:this.callback,name:e.Loc.getMessage("interface_form_save")},cancelButton:{callback:function t(){},name:e.Loc.getMessage("interface_form_cancel")}})},callback:function t(e){console.log(e.text);e.text=e.text||"";this.node.value=e.text;if(e.text===""){this.container.innerHTML='<span class="placeholder">'.concat(this.node.getAttribute("placeholder"),"</span>")}else{this.container.textContent=e.text}i.onCustomEvent(this,"onChange",[this,this.node])}};return t}();window.app.exec("enableCaptureKeyboard",true);i.Mobile.Field.String=function(t){this.init(t)};i.Mobile.Field.String.prototype={__proto__:i.Mobile.Field.prototype,bindElement:function t(e){var n=null;if(i(e)){n=new o(e,i("".concat(e.id,"_target")))}return n}}})(this.BX.Mobile.Field.String=this.BX.Mobile.Field.String||{},BX);
//# sourceMappingURL=mobile.map.js